<?php



class sfInterventionMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.sfInterventionMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('sf_intervention');
		$tMap->setPhpName('sfIntervention');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('SEJOUR_ID', 'SejourId', 'int', CreoleTypes::INTEGER, 'sf_sejour', 'ID', true, null);

		$tMap->addColumn('DATE', 'Date', 'int', CreoleTypes::DATE, false, null);

		$tMap->addColumn('MOTIF', 'Motif', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('ACTIONS', 'Actions', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 